import Vue from 'vue'
const resetSidebar = {
  state: {
    resetSidebar: false
  },
  mutations: {
    SET_RESET_SIDEBAR: (state, resetSidebar) => {
      state.resetSidebar = resetSidebar
    }
  },
  actions: {
    // 表单修改存入store
    changeSidebar({ commit }, resetSidebar) {
      return new Promise((resolve) => {
        commit('SET_RESET_SIDEBAR', resetSidebar);
        resolve();
      })
    }
  }
}

export default resetSidebar;
